//
//  UnBoundTopTipsView.swift
//  EasePods
//
//  Created by 易先生 on 2024/5/7.
//

import UIKit

class UnBoundTopTipsView: View {

    override func makeUI() {
        super.makeUI()
        
        backgroundColor = R.color.common_7_bg()
        
        self.addSubview(warnImageView)
        self.addSubview(warnLabel)
        warnImageView.snp.makeConstraints { make in
            make.leading.equalToSuperview().offset(20)
            make.centerY.equalTo(warnLabel)
            make.size.equalTo(CGSize(width: 18, height: 18))
        }
        
        warnLabel.snp.makeConstraints { make in
            make.top.equalToSuperview().offset(13)
            make.leading.equalToSuperview().offset(42)
            make.trailing.equalToSuperview().offset(-20)
            make.bottom.equalToSuperview().offset(-13)
        }
    }
    
    private lazy var warnImageView: ImageView = {
        let imageView = ImageView()
        imageView.image = R.image.ic_setting_warn()
        return imageView
    }()
    
    private lazy var warnLabel: Label = {
        let label = Label()
        label.font = Fonts.systemFont(ofSize: 12)
        label.textColor = R.color.common_8_text()
        label.numberOfLines = 0
        label.text = R.string.localizable.setting_not_bound_tips_text()
        return label
    }()

}
